/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Interface;

/**
 * 下载进度事件
 *
 * @author wcss
 */
public interface IDownloadProgressEvent 
{

    /**
     * 报告下载进度
     * @param sender
     * @param currentlength
     * @param totallength 
     */
    void onReportProgress(AVideoDownloader sender, long currentlength, long totallength);

    /**
     * 报告下载错误
     * @param sender
     * @param code
     * @param errormsg 
     */
    void onReportError(AVideoDownloader sender, String code, String errormsg);

    /**
     * 报告下载完成
     * @param sender 
     */
    void onReportFinish(AVideoDownloader sender);

    /**
     * 报告下载状态
     * @param sender 
     */
    void onReportStatus(AVideoDownloader sender,String state);
}
